package sing.cloud.alibaba.seata.service;

import io.seata.rm.tcc.api.LocalTCC;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author xing
 * @date 2022/9/3 18:47
 */
//@LocalTCC
public interface IAccountService {
    /**
     * 扣减账户余额
     * @param userId 用户id
     * @param money 金额
     */
    void decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
